<html>
<head><meta charset="utf-8"><title>libc::c_char · general · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/index.html">general</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/libc.3A.3Ac_char.html">libc::c_char</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="146879428"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/libc%3A%3Ac_char/near/146879428" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> gnzlbg <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/libc.3A.3Ac_char.html#146879428">(Nov 06 2018 at 17:21)</a>:</h4>
<p>Why do we need <code>c_char</code> at all ? Isn't it guaranteed to be the same type as <code>u8</code> ?</p>



<a name="146879830"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/122651-general/topic/libc%3A%3Ac_char/near/146879830" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> gnzlbg <a href="https://rust-lang.github.io/zulip_archive/stream/122651-general/topic/libc.3A.3Ac_char.html#146879830">(Nov 06 2018 at 17:27)</a>:</h4>
<p>nope, we need it because <code>char</code> signedness is not defined, and is a distinct type from <code>signed char</code> and <code>unsigned char</code>...</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>